<form class="form-horizontal" name="host_form" ng-submit="save_template()">
    <div class="modal-header">
        <a class="close" ng-click="close()">×</a>

        <h3>{{ title }}</h3>
    </div>
    <div class="modal-body">
        <div class="row-fluid">
            <div class="control-group">
                <label class="control-label">名称：</label>

                <div class="controls">
                    <input type="text" required ng-model="template.name" placeholder="模版名称"/>
                </div>
            </div>
                 <div class="control-group">
                <label class="control-label">备注：</label>

                <div class="controls">
                    <input type="text" required ng-model="template.desc"/>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">存储：</label>

                <div class="controls">
                    <select class="span8" required ng-model="template.storage"
                            ng-options="s.name for s in storages">
                    </select>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">操作系统：</label>

                <div class="controls">
                    <select class="" required ng-options="os.name for os in ostypes"
                            ng-model="template.os_type">
                    </select>
                </div>
            </div>
            <!--<div class="control-group">
                <label class="control-label">磁盘：</label>

                <div class="controls">
                    test-disk1
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">大小：</label>

                <div class="controls">
                    20GB
                </div>
            </div>-->


        </div>
    </div>
    <div class="modal-footer">
        <a data-dismiss="modal" class="btn" ng-click="close()">关闭</a>
        <button type="submit" ng-disabled="!host_form.$valid" class="btn btn-primary">保存</button>
    </div>
</form>